package com.education.service.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 系统任务类
 * @author Jason
 * @version 1.0.0
 * @date 2021-11-21 00:52
 */
public class SystemJob extends BaseJob {
    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        Date date = new Date();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println("【" + simpleDateFormat.format(date) + "】执行任务：" +
                SystemJob.class.getSimpleName());
    }
}
